import dao.UserDao;
import lombok.extern.slf4j.Slf4j;
import model.User;

/**
 * @author caoqianfan
 * @date 2024/7/15 上午10:47
 */
@Slf4j
public class App {
    public static void main(String[] args) {
        UserDao dao = new UserDao();
        //新增
        User userAdd = new User();
        userAdd.setName("小飞");
        //dao.save(userAdd);
        //删除
        //dao.removeByPrimaryKey(1);
        //修改
        User userUpdate = new User();
        userUpdate.setId(1);
        userUpdate.setName("小飞机");
        //dao.updateByPrimaryKey(userUpdate);
        //查询
        //log.info(dao.list().toString());
    }
}
